package com.movie.api.constant;

import java.util.List;

/**
 * 权限常量
 * <p>
 * <p>
 * 那个SpringSecurity要求加上 "ROLE_" 前缀
 */
public final class Roles {

    // 普通用户
    public final static String ROLE_USER = "ROLE_USER";

    // 查询用户
    public final static String ROLE_FIND_USER = "ROLE_FIND_USER";

    // 新增电影
    public final static String ROLE_ADD_FILM = "ROLE_ADD_FILM";

    // 删除电影
    public final static String ROLE_DELETE_FILM = "ROLE_DELETE_FILM";

    public final static String[] roles = {
            ROLE_FIND_USER,
            ROLE_ADD_FILM,
            ROLE_DELETE_FILM
    };

}

